<template>
  <div class="am-header">
    <div class="head">
      <div v-if="head_areey" class="am">
        
		<router-link to="/"><img src="../../public/logo.png" alt="" /></router-link>
        <div v-for="(da, i) in head_areey" :key="i">
          <router-link :to="da.cad + ''" class="router-link-active">{{
            da.name
          }}</router-link>
        </div>
        <router-link
          to="/"
          class="router-link-active"
          style="justify-content: end"
          >退出</router-link
        >
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      head_areey: [
        { name: "二手房", cad: "/a" },
        { name: "新房", cad: "/b" },
        { name: "租房", cad: "/list" },
        { name: "商业办公", cad: "/c" },
        { name: "小区", cad: "/d" },
        { name: "问答", cad: "/e" },
        { name: "工具", cad: "/f" },
        { name: "发布房源", cad: "/publish" },
      ],
    };
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}
.am-header {
	
  width: 100%;
}
.head {
  background: #39ac6a;
  .am {
    // justify-content: center;
    width: 50%;
    // margin: 0 auto;
    text-align: center;
    margin: 0 auto;
    font-size: 14px;
    height: 55px;
    line-height: 55px;
    color: #fff;
    font-family: "Hiragino Sans GB", "Microsoft Yahei UI", "Microsoft Yahei",
      "微软雅黑", "Segoe UI", Tahoma, "宋体b8b\4f53", SimSun, sans-serif;
    display: flex;

    img {
	margin-right: -50px;
      margin-top: 12px;
      margin-bottom: 12px;
      display: block;
      background-repeat: no-repeat;

    }
    .router-link-active {
      font-size: 16px;
      color: #fff;
      padding: 0 10px;
    }
  }
}
a {
  outline: none;
  text-decoration: none;
  user-select: none;
}
</style>